{extend name="layout_modal" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">用户名</label>
          <input type="text" class="form-control" placeholder="用户名" name="username" value="{$info.nickname}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">昵称</label>
          <input type="text" class="form-control" placeholder="昵称" name="nickname" value="{$info.nickname}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">手机号</label>
          <input type="text" class="form-control" placeholder="手机号" name="phone" value="{$info.phone}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">性别</label>
          <select class="form-control" id="gender">
            <option value="">请选择</option>
            <option value="男" {eq value="男" name="info.gender"} selected {/eq}>男</option>
            <option value="女" {eq value="女" name="info.gender"} selected {/eq}>女</option>
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">QQ</label>
          <input type="text" class="form-control" placeholder="QQ" name="qq" value="{$info.qq}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">email</label>
          <input type="text" class="form-control" placeholder="email" name="email" value="{$info.email}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">motto</label>
          <input type="text" class="form-control" placeholder="motto" name="motto" value="{$info.motto}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">头像</label>
          <div class="input-group input-group-sm">
            <input type="text" class="form-control" name="avatar" id="thumb_text" value="{$info.avatar}">
            <span class="input-group-btn">
              <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
            </span>
          </div>
          <div id="queue_thumb"></div>
        </div>
      </div>
      <input type="hidden" value="{$info.id}" name="id">
      <!-- /.box-body -->
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}